package com.carsys.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * Created by jeffrey on 2020/12/21.
 */
@Controller
public class IndexController {

    /**
     * 跳转到主页
     * @return
     */
    @RequestMapping("/")
    public String showIndex(){
        return "pagehome/index";
    }

    /**
     *  跳转的注册的界面
     * @return
     */
    @RequestMapping("/register")
    public String showRegister(){
        return "pagehome/register";
    }

    /**
     *  跳转到登录得界面
     * @return
     */
    @RequestMapping("/login")
    public String showLogin(){
        return "pagehome/login";
    }

    /**
     *  登陆成功 跳转界面
     * @return
     */
    @RequestMapping("/loginSuccess")
    public String showLoginSuccess(){
        return "pagehome/loginsuccess";
    }

    /**
     * 跳转到找回密码界面
     * @return
     */
    @RequestMapping("/findPassword")
    public String showFindPassword(){
        return "pagehome/findpassword";
    }

    /**
     *  跳转到管理员界面
     * @return
     */
    @RequestMapping("/admin")
    public String showAdmin(){
        return "admin/admin";
    }
    /**
    *短租排序
    */
    @RequestMapping("/shortsort")
    public String showshortsort(){
        return "shortRent/shortsort";
    }

    /**
     * 填写与核对订单
     * @return
     */
    @RequestMapping("/ordersubmit")
    public String showordersubmit(){
        return "order/ordersubmit";
    }



    /**
     *  跳转到 用户管理界面
     * @return
     */
    @RequestMapping("/userList")
    public String showUserList(){
        return "admin/userList";
    }

    /**
     *  跳转到 无效会员管理界面
     * @return
     */
    @RequestMapping("/disableUsers")
    public String showDisableUsers(){
        return "admin/disableUsers";
    }

    /**
     *  跳转到  添加车辆界面
     * @return
     */
    @RequestMapping("/addCar")
    public String showAddCar(){
        return "admin/addCar";
    }
    /**
    *短租自驾
    */
    @RequestMapping("/shortrent")
    public String showshortrent(){
        return "shortRent/shortrent";
    }
    /**
     *查询所有订单
     * @return
     */
    @RequestMapping("/showAllOrder")
    public String showshowAllOrder(){
        return "admin/showAllOrder";
    }

    /**
     * 查看汽车分类
     * @return
     */
    @RequestMapping("/showCars")
    public String showGoodsType(){return "admin/showCarsType";}

    @RequestMapping("/showMymain")
    public String showMymain(){return "mymain/mymain";}



}
